//
//  BankBusinessView.m
//  SUZHOUBANK
//
//  Created by saberLily on 16/4/11.
//  Copyright © 2016年 RuiFeng-WGCC. All rights reserved.
//

#import "BankBusinessView.h"
#import "TopMenusView.h"
#import "ScreenAdaptation.h"
#import "Header.h"
#import <Masonry.h>
@interface BankBusinessView () <TopMenusViewDelegate>
@property (nonatomic,strong) UIView *redView;
@property (nonatomic,strong) savingDepositView *saV;
@property (nonatomic,strong) depositRateView *depV;
@property (nonatomic,strong) personalLoanView *perLv;
@property (nonatomic,strong) loanRateView *loanV;
@property (nonatomic,strong) electricBankView *elecV;
@property (nonatomic,strong) bankCardView *banV;
@property (nonatomic,strong) dailyPayView *daiV;
@property (nonatomic,strong) personalBankView *perBv;
@property (nonatomic,strong) mobileBankView *mobV;
@end

@implementation BankBusinessView

- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        TopMenusView *topView = [[TopMenusView alloc] initWithFrame:AdaptationFrame(10, 5, 870, 40) dataSource:@[@"储蓄存款",@"存款利率",@"个人贷款",@"贷款利率",@"电子银行",@"银行卡",@"日常缴费",@"个人银行",@"手机银行"]];
        topView.delegate = self;
        [self addSubview:topView];
        [self addSubview:self.redView];
        [self.redView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(topView.mas_bottom).offset(10);
            make.left.equalTo(self.mas_left).offset(20);
            make.right.equalTo(self.mas_right).offset(-20);
            make.bottom.equalTo(self.mas_bottom).offset(-20);
        }];
        
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    [self.redView addSubview:self.saV];
    
}
#pragma mark *** TopMenusViewDelegate ***
- (void)topMenusView:(TopMenusView *)topMenusView didSelectedItemIndexPathRow:(NSInteger)indexPathRow {
    
}
@end

